package com.scalar.chiptrack.operations.dataentry.lotscrap.actioncommands;

import com.scalar.chiptrack.actioncommands.ActionCommand;
import com.scalar.chiptrack.commons.Constants;


public class ScrapMaterialActionCommandFactory implements Constants
{

    private ScrapMaterialActionCommandFactory()
    {
    }

    public static ActionCommand getActionCommand( String action )
    {
        //System.out.println("ScrapMaterialActionCommandFactory.getActionCommand = " + action);

        if ( action == null || "processTypes".equalsIgnoreCase( action )  )
        {
            return new ScrapMaterialLoadProcessTypesCommand();
        }
        else if ( "lotDetails".equalsIgnoreCase( action ) )
        {
            return new ScrapMaterialLoadLotDetailsCommand();
        }
        else if ( "save".equalsIgnoreCase( action ) || "confirm".equalsIgnoreCase( action )  )
        {
            return new ScrapMaterialSaveLotDetailsCommand();
        }


        return null;
    }

}
